home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / Macintosh Sample Code / SC.010.EditTextCdev / CEditCDev.make < prev    next >
Encoding:
Text File  |  1988-08-16  |  1.8 KB  |  56 lines  |  [TEXT/MPS ]

  1. #
  2. #    Macintosh Developer Technical Support
  3. #
  4. #    EditText Sample Control Panel Device
  5. #
  6. #    EditCdev
  7. #
  8. #    EditCdev.make    -    Make Source
  9. #
  10. #    Copyright © 1988 Apple Computer, Inc.
  11. #    All rights reserved.
  12. #
  13. #    Versions:    1.0                    8/88
  14. #
  15. #    Components:    EditCdev.p            August 1, 1988
  16. #                EditCdev.c            August 1, 1988
  17. #                EditCdev.r            August 1, 1988
  18. #                PEditCdev.make        August 1, 1988
  19. #                CEditCdev.make        August 1, 1988
  20. #
  21. #    EditCdev is a sample Control Panel device (cdev) that 
  22. #    demonstrates the usage of the edit-related messages.  
  23. #    EditCdev demonstrates how to implement an editText item
  24. #    in a Control Panel Device.  It utilizes the new undo, cut, copy,
  25. #    paste, and delete messages that are sent to cdevs in
  26. #    response to user menu selections.
  27. #
  28. #    It is comprised of two editText items that can be edited 
  29. #    and moved between via the mouse or tab key.
  30. #
  31. # MPW 3.0 and later: We override the default COptions to turn on strict prototyping;
  32. #    add '-r' to your UserStartup when you tire of the warning from Make.
  33. # If you are using MPW 3.0 or later, uncomment the following line:
  34. #COptions = -d MPW3 -r    # define MPW3, turn on strict prototyping (-r option)
  35. # For MPW 2.0 we use the following line so that the the complete interfaces are there:
  36. COptions = -d __ALLNU__
  37.  
  38. SrcName            =    EditCdev
  39. Lang            =    C
  40. CdevName        =    {Lang}{SrcName}
  41.  
  42. Objs            =    {SrcName}.{Lang}.o ∂
  43.                     "{CLibraries}"CInterface.o ∂
  44.                     "{Libraries}"Interface.o
  45. # note that Interface.o is not needed for MPW 2.0 & CInterface.o isn’t needed for MPW 3.0
  46.  
  47. {CdevName}        ƒƒ    {Objs} {CdevName}.make
  48.         Link -o {Targ} -rt cdev=-4064 -m TEXTCDEV {Objs} && ∂
  49.             Setfile {CdevName} -a B && ∂
  50.                 Duplicate -y {CdevName} "{SystemFolder}"
  51.  
  52. {CdevName}        ƒƒ    {SrcName}.r {CdevName}.make
  53.         Rez -o {Targ} {SrcName}.r -t cdev -c hack -rd -append && ∂
  54.             Setfile {CdevName} -a B && ∂
  55.                 Duplicate -y {CdevName} "{SystemFolder}"
  56.